<template>
  <div></div>
</template>

<script setup>
import {useRouter, useRoute} from 'vue-router'

defineOptions({
  name: 'authredirect',
})

const router = useRouter()
const route = useRoute()

function created () {
  window.close()
  const params = route.query
  const state = params.state
  const code = params.code
  window.opener.location.href = `${window.location.origin}/#/login?state=${state}&code=${code}`
}

created()
</script>

<script>
export default {


}
</script>


<style>
</style>
